/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.upload.domain;

import info.peigen.hotpot.common.core.domain.DomainObject;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import org.noear.solon.core.handle.UploadedFile;

/**
 * <b>(Upload)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/11/14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class Upload extends DomainObject {
    String fileName;
    @NotNull
    UploadedFile uploadedFile;
    String uploadPath;
}